<!-- /* Description for file.
 * 重要性管理
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/importances
 * @since         ues
 * @version       V0.0.1
 * @modifiedby    张海杰2011年0701
 * @lastmodified  张海杰2011年0701
 */
 -->

<?php
echo $html->css ( 'tab' );
echo $javascript->link ( 'jquery' );
echo $javascript->link ( 'checkedAll' );
?>
<script type="text/javascript">
	function getDelStr() {
		var delArr = $("#ImportanceDeleteForm :checkbox:checked");
		if(delArr.length==0)
		{
			alert("请选择你要删除的项!");
			return;
		}
		if(!confirm("确定删除?"))
		{
			return;
		}
		var str = "";
		for(var i=0;i<delArr.length;i++) {
			var del = delArr[i].value;
			str += del;
			str += "/";
		}
		//window.alert(str);
		$("#delStr").val(str);
		//window.alert($("#delStr").val());
		$("#ImportanceDeleteForm").submit();
	}
</script>

<!-- 当前位置-->
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubartitle1"><?php echo  __('YourPosition');//您现在的位置：?></td>
		<td class="tabmenubartitle2"><?php echo __('Personal Office');//一级目录
										   echo '>';echo __('Schedule');//二级目录
										   echo '>';?>
									<?php echo $html->tag('span', __('Importance',true));//当前操作地用span加粗?> 						  
		</td>
	</tr>
</table>
</div>
<!-- 当前位置-->

<?php echo $form->create('Importance',array('action'=>'delete','type'=> 'post'));?>
<?php echo $form->hidden('delStr',array('name'=>'importancesid','id'=>'delStr'));?>
<div class="actions"  id="notices-actions">
	<ul>
		<li>
			<a><?php echo $html->image('delete.gif', array('alt' =>  __('Delete', true),'border'=>'0','title'=> '删除',
		 									'onclick'=>'getDelStr()'));?></a>
		</li>
			<!--  __('delete', true) 删除、提示 -->
		<li>
			<?php echo $html->link( $html->image('add.gif', array('alt' =>  __('Add', true),'border'=>'0')), '/importances/add/', null,null,
			array('escape'=>false));  ?> 
 					<!--  __('Add', true) 增加 -->
		</li>		
	</tr>
</div>
<!-- 日程类型管理 -->
<div id="nav1" style="width:97%">
<table width="100%" cellpadding="0" cellspacing="0" class="tab1">
	<tr>
		<th width="70px"><?php echo $form->checkbox('',array('id'=>'checkedAll'));?></th>
		<th ><?php echo __('ImportanceName');?></th>
		<th width="40px;"><?php echo __('Operate') ?></th>
	</tr>
	<?php 
	foreach ($importances as $datas): 
	?>
		<tr class=normal onmouseover='this.className= "over " '
			onmouseup='this.className= "over " '
			onmouseout='this.className= "normal " '>
			<td>
<!-- 批量删除选择 -->				
				<?php echo $form->checkbox($datas['Importance']['id'], array('value' => $datas['Importance']['id'],'name'=>'checkbox_name'));?>
			</td>
			<td title="<?php echo $datas['Importance']['name']; ?>"><?php echo $datas['Importance']['name']; ?></td>
			<td><?php echo $html->link( $html->image('edit.gif', array('alt' =>  __('Edit', true),'border'=>'0')), '/importances/edit/' . $datas['Importance']['id'], null,null,
			array('escape'=>false));  ?> 	
			</td><!--  __('edit', true) 修改 -->
		</tr> 
	<?php endforeach; ?>
</table>
</div>
<!-- 日程类型管理-->
<?php echo $form->end();?>




